]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-scroll-bar: Use clutter_actor_destroy in dispose
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Feb 2012 15:48:00 +0000 (10:48 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 14 Feb 2012 21:48:47 +0000 (16:48 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=670034

src/st/st-scroll-bar.c

index 80aa48a7b887ed17d29e349f25d25a5f9f4b5962..6fe185db150fc1ae1b327240870eb71517d88f3e 100644 (file)
@@ -181,28 +181,25 @@ st_scroll_bar_dispose (GObject *gobject)
 
   if (priv->handle)
     {
-      g_signal_handlers_disconnect_by_func (priv->handle,
-                                            G_CALLBACK (handle_button_press_event_cb),
-                                            bar);
-      clutter_actor_unparent (priv->handle);
+      clutter_actor_destroy (priv->handle);
       priv->handle = NULL;
     }
 
   if (priv->bw_stepper)
     {
-      clutter_actor_unparent (priv->bw_stepper);
+      clutter_actor_destroy (priv->bw_stepper);
       priv->bw_stepper = NULL;
     }
 
   if (priv->fw_stepper)
     {
-      clutter_actor_unparent (priv->fw_stepper);
+      clutter_actor_destroy (priv->fw_stepper);
       priv->fw_stepper = NULL;
     }
 
   if (priv->trough)
     {
-      clutter_actor_unparent (priv->trough);
+      clutter_actor_destroy (priv->trough);
       priv->trough = NULL;
     }